package com.aiyan.edu.service.learning.client;

import com.aiyan.edu.framework.client.AiyanServices;
import com.aiyan.edu.framework.domain.course.CoursePlanMediaPub;
import com.aiyan.edu.framework.model.response.CommonResponseResult;
import com.aiyan.edu.service.learning.client.fallback.CourseEsSearchClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: zqzhou
 * @create: 2019/11/20 23:27
 **/
@FeignClient(value = AiyanServices.AIYANEDU_SERVICE_SEARCH, fallback = CourseEsSearchClientFallback.class)
public interface CourseEsSearchClient {
    @GetMapping("/search/course/media/{coursePlanId}")
    public CommonResponseResult<CoursePlanMediaPub> findCourseMedia(@PathVariable("coursePlanId") String coursePlanId);
}
